//
//  BigDicTion.m
//  ShanProject
//
//  Created by dllo on 15/9/30.
//  Copyright (c) 2015年 蓝鸥科技. All rights reserved.
//

#import "BigDicTion.h"
#import "URLLandController.h"
@implementation BigDicTion

-(NSMutableArray *)titleArray
{
    if (_titleArray == nil) {
        
         NSArray *array = @[@"最新",@"快报",@"视频",@"新闻",@"评测",@"导购",@"行情",@"用车",@"技术",@"文化",@"改装",@"游记",@"原创视频",@"说客"];
        
        _titleArray = [NSMutableArray arrayWithArray:array];
    }
    
    return _titleArray;
    
}

-(NSMutableDictionary *)dic
{
    if (_dic ==nil) {
        
        
         NSMutableDictionary *dic = [NSMutableDictionary dictionary];
        
        
          NSArray *array = @[@"最新",@"快报",@"视频",@"新闻",@"评测",@"导购",@"行情",@"用车",@"技术",@"文化",@"改装",@"游记",@"原创视频",@"说客"];
        
        
        NSArray *arrayUrl = @[@"http://app.api.autohome.com.cn/autov4.9.5/news/newslist-pm2-c0-nt0-p1-s30-l0.json",
                              @"http://183.232.160.141/app.api.autohome.com.cn/autov4.9.5/news/fastnewslist-pm2-b0-l0-s20-lastid0.json",
                              @"http://183.232.160.141/app.api.autohome.com.cn/autov4.9.5/news/videolist-pm2-vt0-s20-lastid0.json",
                              @"http://183.232.160.141/app.api.autohome.com.cn/autov4.9.5/news/newslist-pm2-c0-nt1-p1-s20-l0.json",
                              @"http://183.232.160.141/app.api.autohome.com.cn/autov4.9.5/news/newslist-pm2-c0-nt3-p1-s20-l0.json",
                              @"http://183.232.160.141/app.api.autohome.com.cn/autov4.9.5/news/newslist-pm2-c0-nt60-p1-s20-l0.json",
                              @"http://183.232.160.141/app.api.autohome.com.cn/autov4.9.5/news/newslist-pm2-c210200-nt2-p1-s20-l0.json",
                              @"http://183.232.160.141/app.api.autohome.com.cn/autov4.9.5/news/newslist-pm2-c0-nt82-p1-s20-l0.json",
                              @"http://183.232.160.141/app.api.autohome.com.cn/autov4.9.5/news/newslist-pm2-c0-nt102-p1-s20-l0.json",
                              @"http://183.232.160.141/app.api.autohome.com.cn/autov4.9.5/news/newslist-pm2-c0-nt97-p1-s20-l0.json",
                              @"http://183.232.160.141/app.api.autohome.com.cn/autov4.9.5/news/newslist-pm2-c0-nt107-p1-s20-l0.json",
                              @"http://183.232.160.141/app.api.autohome.com.cn/autov4.9.5/news/newslist-pm2-c0-nt100-p1-s20-l0.json",
                              @"http://183.232.160.141/app.api.autohome.com.cn/autov4.9.5/news/videolist-pm2-vt8-s20-lastid0.json",
                              @"http://183.232.160.141/app.api.autohome.com.cn/autov4.9.5/news/shuokelist-pm2-s20-lastid0.json"
                              
                              ];
        
        
        NSArray *arr1 = @[@"NewestViewController",
                          @"FastReportViewController",
                          @"AudioViewController",
                          @"NewsViewController",
                          @"TestViewController",
                          @"TestViewController",
                          @"TestViewController",
                          @"TestViewController",
                          @"TestViewController",
                          @"TestViewController",
                          @"TestViewController",
                          @"TestViewController",
                          @"TestViewController",
                          @"TestViewController"
                          ];
        
        
        
          //NSLog(@"aaa%ld",array.count);
          //NSLog(@"aaa%ld",arrayUrl.count);
          //NSLog(@"aaa%ld",arr1.count);
       
        for (int i = 0 ; i < arrayUrl.count ; i ++ ) {
            
            URLLandController *model = [[URLLandController alloc]init];
            model.url = arrayUrl[i];
            //NSLog(@"%@",arr1[i]);
            model.controllername = arr1[i];
            
            [dic setObject:model forKey:array[i]];

            
        }
        


        
    }
    
    
    return  _dic;
    
}

+(instancetype)shareBigDic
{
    static BigDicTion *handle = nil;
    
    if (handle == nil) {
     
        
        
        handle = [[BigDicTion alloc]init];
        
        
    }
    
    
    return handle;
    
    
}
@end
